package com.vegetable.modules.entity.finance.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 财务付款管理
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PaymentDetailPO对象", description="财务付管理提交detailPO类")
public class PaymentPurchaseStatisticsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上游订单表id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;

    @ApiModelProperty(value = "单号")
    private String docNo;

    @ApiModelProperty(value = "订单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal totalMoney;

    private BigDecimal totalDiscount;

    @ApiModelProperty(value = "已付款金额")
    private BigDecimal payedMoney;

    @ApiModelProperty(value = "未支付金额")
    private BigDecimal noPayMoney;

    @ApiModelProperty(value = "未对账金额")
    private BigDecimal noReconciledMoney;

    @ApiModelProperty(value = "订单数量")
    private Integer orderNum;

    @ApiModelProperty(value = "折让")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private BigDecimal discount;

    @ApiModelProperty(value = "实付金额")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long customerId;

    @ApiModelProperty(value = "代办名字")
    private String customerName;

}
